import xmlrpclib
chat = xmlrpclib.ServerProxy("http://localhost:9999")
print chat.Register("Pavel","321")
print chat.Login("Pavel", "321")
print chat.WhoIsIn()
print chat.Message("Pavel", "321", "Fucking world!")
print chat.CreateRoom("PavelsRoom", "", True, "Pavel", "321")
print "GetRooms: ", chat.GetRooms("Pavel", "321")
print chat.EnterRoom("PavelsRoom", "", "Pavel", "321")
print chat.WhoIsIn("PavelsRoom")
print chat.Message("Pavel", "321", "Fucking world!", "PavelsRoom")
print chat.Logout("Pavel","321")
